/*
    Bandleader
    Copyright (c) 2006 by Grant Yoshida

    Licensed under the GPL version 2 or later,
    please see COPYING for details.
*/

#include "MidiPerform.h"

int main(int argc, char** argv) {
    if (argc != 2) {
        cout << "Usage: " << argv[0] 
            << " midifile" << endl;
        exit(1);
    }

    MidiPerform performance;
    performance.setPort(0);
    performance.open();
    performance.read(argv[1]);
    performance.setTempo(120);
    performance.setTempoMethod(TEMPO_METHOD_AUTOMATIC); 

    while (performance.check()) {
        millisleep(1);
    }

    return 0;
}
